<cfcomponent name="Application">
	
	<cfscript>
		this.name="ConfigTest";
		this.sessionmanagement="Yes";
		this.sessiontimeout="#CreateTimeSpan(0,0,20,0)#";
	</cfscript>
	
	<cffunction name="onApplicationStart" returnType="boolean" output="false">
		
		<cflock name="appInitBlock" type="readonly" timeout="5">
			<cfscript>
				createObject('component','config').init().setVariables();
			</cfscript>
		</cflock>
		
		<cfreturn true />
	</cffunction>
	
	<cffunction name="onRequestStart" returnType="boolean" output="false">
		
		<cfparam name="url.appReload" default="false" />
		
		<cfscript>
			// if we need to reinit the app
			if ( url.appReload ) {
				onApplicationStart();
			}
		</cfscript>
		
		<cfreturn true>
	</cffunction>
	
</cfcomponent>